
function post(){
// 表单格式化

var postData = $('form').serialize();

// alert(postData);

$.ajax({
	url: 'index.php?a=post',
	type: 'post',
	dataType: 'json',
	data: postData,
	success:function(data){
		alert(data);
	}
});

	return false;
}

// {"state":"success","message":"\u53d1\u8868\u6210\u529f","data":{"title":"sdf","body":"sdf"}}